package com.student.system.service;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.sql.SQLException;

public interface AdminService {

    void doLogin(HttpServletRequest req, HttpServletResponse resp);

    void message(HttpServletRequest req, HttpServletResponse resp);


    void StudentRegister(HttpServletRequest req, HttpServletResponse resp);

    void teacherMessage(HttpServletRequest req, HttpServletResponse resp);

    void teacherRegister(HttpServletRequest req, HttpServletResponse resp);

    void StudentMessageEdit(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException, Exception;

    void doEditStudentMessage(HttpServletRequest req, HttpServletResponse resp) throws SQLException, IOException;

    void StudentRegisterEdit(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException, SQLException;

    void doEditStudentRegister(HttpServletRequest req, HttpServletResponse resp) throws IOException, SQLException;

    void TeacherRegisterEdit(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException, SQLException;

    void doEditTeacherRegister(HttpServletRequest req, HttpServletResponse resp) throws IOException, SQLException;

    void TeacherMessageEdit(HttpServletRequest req, HttpServletResponse resp) throws IOException, SQLException, ServletException;

    void doEditTeacherMessage(HttpServletRequest req, HttpServletResponse resp) throws SQLException, IOException;
}
